import request from '../../src/utils/request.js'

export function listCalibration(query) {
    return request({
        url: '/api/calibration',
        method: 'get',
        params: query,
    })
}
export function addCalibration(data) {
    return request({
        url: 'api/calibration',
        method: 'post',
        data: data,
    })
}

export function updateCalibration(data) {
    return request({
        url: 'api/calibration',
        method: 'PUT',
        data: data,
    })
}

export function getCalibration(id) {
    return request({
        url: 'api/calibration/' + id,
        method: 'get'
    })
}
  
export function delCalibration(pid) {
    return request({
      url: 'device/calibration/delete/' + pid,
      method: 'delete'
    })
}
  